@prefix-cls: announce-update;
@import './compileAvatar.theme.less';

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    .overflow();

    &-col {
      width: 100%;
      height: 100%;
      .overflow();

      &-divBox {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
      }
    }
  }

  //去掉modal 脚部按钮边框
  &-addEditModalStyle {
    .ant-modal-footer {
      border-top: 0px;
    }
  }

  // 接收部门modal样式
  &-receiveDeptCol {
    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChildFalse {
      width: 100%;
      background-color: #eb2f9612;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #ff0000;
      border: 1px solid #ff0000;
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
      width: 85%;
    }
  }

  &-formCardExtra {
    transform: rotate(90deg);
  }

  /**
  * 右侧我的编撰样式
  */
  &-rightCompileStyle {
    padding: 0px 1.5rem;

    .ant-list-item {
      padding-bottom: 0px;
    }
  }

  /**
  * 公告详情样式
  */

  &-announceDetail {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .ant-divider {
      margin: 5px 0px;
      background: #e8e8e8;
    }

    &-title {
      font-size: 1.5rem;
      text-align: center;
    }

    &-titleRightCol {
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      white-space: nowrap;
    }

    &-content {
      color: #989898;
      padding: 0px 5px;
      width: 100%;
      display: flex;
      justify-content: center;

      // span {
      //   margin-right: 30px;
      // }
    }

    &-contentUser {
      display: flex;
      justify-content: flex-end;
      color: #989898;
    }

    &-scrollBox {
      width: 100%;
      height: 100%;
      flex: auto;
      overflow: hidden;
    }
  }

  /**
    *  文件列表样式
    */
  &-fileListBox {
    display: flex;
    padding: 15px 10px;
    border: 1px solid #e4e4e4;
    background-color: #f9f9f9;

    &-labelText {
      white-space: nowrap;
      font-size: 16px;
      font-weight: 700;
    }

    &-row {
      width: 100%;
      font-size: 16px;
    }
  }

  /**
 *   详情右侧可见范围
  */
  &-infoRightViewRang {
    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
    }

    &-detailCard {
      width: 100%;
      box-sizing: border-box;
      display: grid;
      grid-template-columns: repeat(1, 99%);
      grid-gap: 0.5rem;
    }

    &-detailCardChild {
      padding: 5px 10px;
      text-align: center;
      background-color: #409eff0a;
      border-radius: 4px;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
      display: flex;
      justify-content: center;
      align-items: center;
      // margin-bottom: 10px;
    }
  }

  /**
  *处理右侧搜索框
  */
  &-CardAutoComplete {
    .ant-card-head-title {
      width: 30%;
    }

    .ant-card-extra {
      width: 70%;
      text-align: right;
      // padding: 5px 0;
    }

    &-autoInput {
      width: 100%;

      .ant-input-affix-wrapper {
        border-radius: 50px;
      }
    }
  }

  /** 时间轴样式*/
  &-tmplTimeline {
    width: 100%;
    padding: 10px 10px 0px;

    .ant-timeline.ant-timeline-label .ant-timeline-item-label {
      width: calc(30% - 12px);
    }

    .ant-timeline.ant-timeline-label .ant-timeline-item-tail {
      left: 30%;
    }

    .ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {
      left: 30%;
    }

    .ant-timeline.ant-timeline-pending
      .ant-timeline-item-last
      .ant-timeline-item-tail {
      border-left: 2px solid #f0f0f0;
    }

    .ant-timeline-item-content {
      left: 30%;
      width: 70%;
      margin: 0px 0px 0px 15px;
      min-height: 80px;
    }

    .ant-timeline-item {
      padding: 0px;
    }

    /**
    * 邮编内容
    */
    &-contentRow {
      .ant-col {
        margin-bottom: 5px;
      }
    }

    /**
    * 左侧时间 日期
    */
    &-leftDateSpan {
      font-weight: 700;
    }

    &-leftHourSpan {
      color: #949494;
      font-size: 14;
    }

    &-contantLable {
      color: #818181;

      &-userInfoText {
        color: #3f3f3f;
      }
    }
  }

  &-tmplTimelineBox {
    border: 1px solid #d7e8f4;
    background-color: #f7fbfe;
    padding: 5px;

    &-titleCol {
      display: flex;
      justify-content: space-between;
      padding: 0px;
    }

    &-bottomCol {
      padding: 0px 8px;
      font-size: 12px;
      color: #656565;
    }
  }

  /**
  *  公告详情角标置顶样式
  */
  &-cardExtra {
    .ant-card-extra {
      position: relative;
    }

    &-iconIsTop {
      position: absolute;
      font-size: 45px;
      top: -36px;
      right: -16px;
    }
  }

  /*
  * 卡片头部
  */
  &-cardHead {
    .ant-card-head {
      background-color: #f9f9f9;
    }
  }

  /**
  *  公告详情下方列表按钮
  */
  &-announceBottom {
    padding: 5px 20px;
    margin-top: 5px;
    border-top: 1px solid #e8e8e8;
  }

  /**
  *  返回顶部样式
  */
  &-backTopStyle {
    position: absolute;
    bottom: 100px;
    right: 20px;

    &-circleDiv {
      height: 50px;
      width: 50px;
      border-radius: 50%;
      border: 1px solid #464646;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      background-color: rgba(61, 61, 61, 0.7);
      cursor: pointer;

      div {
        color: #ffffff;
        font-size: 12px;
      }

      .anticon {
        transform: rotate(90deg);
        font-size: 26px;
        color: #fff;
      }
    }
  }

  /*
  * 公告详情右侧
  */
  &-rightBoxView {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    grid-row-gap: 8px;
    row-gap: 8px;

    &-headerBox {
      height: 30%;
    }

    &-bodyBox {
      flex: auto;
      overflow: hidden;
    }
  }

  &-CardRightSearch {
    .ant-card-head-title {
      width: 30%;
    }

    .ant-card-extra {
      width: 70%;
      text-align: right;
      // padding: 5px 0;
    }

    .ant-input {
      border-radius: 50px;
    }
  }
}
